package com.cie2.janji.pages.admin;

import java.util.List;

import org.apache.log4j.Logger;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.cie2.janji.base.CieAdminPage;
import com.cie2.janji.entities.EntityRole;
import com.cie2.janji.services.EntityRoleService;

public class EntityRoleList extends CieAdminPage {

	static Logger logger = Logger.getLogger(EntityRoleList.class.getName());

	@Property
	private EntityRole role;

	//services
	@Inject
	private EntityRoleService entityRoleService;

	public List getEntityRoles() {
		return entityRoleService.getAll();
	}
}
